<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout :: common_header(~{::title})">
    <title>库存管理-商品列表</title>
</head>
<body th:replace="layout :: common_body(~{::div.layui-body})">

<div class="layui-body" style="padding:15px;top: 0px;">
    <!-- start sp-wrapper -->
    <link rel="stylesheet" href="../css/system.css"/>
    <div class="sp-wrapper">
        <h2 class="sp-title"><b>权限设定：<i th:text="${name}"></i></b></h2>
        <form action="/system/set_manage_user_menu" method="post">
            <input type="hidden" name="user_id" th:value="${userId}">
            <div class="sp-group">
                <dl>
                    <div th:each="item:${list}">
                        <dt th:text="${item.getName()}">1. 商品管理</dt>
                        <dd>
                            <label th:each="chirdItem:${item.getChirdMenus()}">
                                <input type="checkbox" th:checked="${chirdItem.getStatus()==0}" name="purview" th:value="${chirdItem.getId()}" th:text="${chirdItem.getName()}">
                            </label>
                        </dd>
                    </div>
                </dl>
                <div class="sp-tool"><input type="submit" value="保存"></div>
            </div>
        </form>
    </div>
    <!-- end sp-wrapper -->
</div>
</body>
<html>
